import { createStore } from 'vuex'
import mutations from './mutations'
export default createStore({
  state: {
    cartList: [], // 购物车的数据
    isDelete: true,
    edit: true, // 默认展示编辑的状态
    orderList: [],
    orderListEnd: [],
    userAddress: [
      {
        id: 1001,
        name: 'Jack',
        tel: '15874859686',
        province: '北京',
        city: '北京市',
        county: '海淀区',
        addressDetail: '小米科技园',
        isDefault: true,
        areaCode: '110102',
      },
      {
        id: 1002,
        name: 'Pony',
        tel: '15874859685',
        province: '广东省',
        city: '深圳市',
        county: '南山区',
        addressDetail: '腾讯大厦',
        isDefault: false,
        areaCode: '290202',
      },
    ]
  },
  getters: {
  },
  mutations,
  actions: {
  },
  modules: {
  }
})
